//WA
#include"bits/stdc++.h"
using namespace std;
long long y,t;
int main()
{
	cin>>y>>t;
	if(t==0)
	{
		cout<<"No"<<endl<<"Yes";
	}
	else
	{
		if(y<0&&t%2==1)
		{
			cout<<"Yes"<<endl;
		 } 
		else
		{
			cout<<"No"<<endl;
		}
		if(y%2==1||y%2==-1)
		{
			cout<<"Yes";
		}
		else
		{
			cout<<"No";
		}
	}
}
